package com.supermarket.api.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 用户收藏表
 * @author 李其伟
 * @date 2023/11/10
 */
@Data
@Entity
@Table(name = "sm_user_collection")
@org.hibernate.annotations.Table(appliesTo = "sm_user_collection",comment="用户收藏表")
public class CollectionEntity extends BaseEntity {

    @Column( name = "sku", columnDefinition = " char(64) not null comment '商品货号' ")
    private String sku;

    @Column(name = "user_id", columnDefinition = " bigint(20) not null comment '用户主键' ")
    private Long userId;

    @Column(name = "create_time", columnDefinition = " datetime comment '创建时间' ")
    private Date createTime;

}